package com.crmweb.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crmweb.dao.StudentsDao;
import com.crmweb.entity.Askers;
import com.crmweb.entity.Students;
import com.crmweb.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService{
@Autowired
private StudentsDao sd;
	@Override
	public List<Students> selAllByAskerid(Students stu) {
		// TODO Auto-generated method stub
		return sd.selAllByAskerid(stu);
	}

	@Override
	public List<Askers> selAllAsker() {
		// TODO Auto-generated method stub
		return sd.selAllAsker();
	}

	@Override
	public int getCountByWhere(Students stu) {
		// TODO Auto-generated method stub
		return sd.getCountByWhere(stu);
	}

	@Override
	public int addStu(Students stu) {
		// TODO Auto-generated method stub
		return sd.addStu(stu);
	}

	@Override
	public int updsStuAskerBySid(List<Integer> list, String askerId) {
		// TODO Auto-generated method stub
		return sd.updsStuAskerBySid(list, askerId);
	}

	@Override
	public int updateStudent(Students stu) {
		// TODO Auto-generated method stub
		return sd.updateStudent(stu);
	}

	@Override
	public int deleteStudent(int id) {
		// TODO Auto-generated method stub
		return sd.deleteStudent(id);
	}

}
